package a.j;

import a.c.bb;
import a.c.cb;
import a.c.d;
import a.c.e;
import a.c.k;
import a.c.m;
import a.c.n;
import a.c.w;
import a.c.x;
import a.i.gb;
import a.i.t;
import a.j.a.j;

public abstract class ke
{
  public static int a;
  
  public static boolean a(g paramg, Object paramObject)
  {
    boolean bool = ld.E;
    if (!bool) {
      if ((paramObject instanceof e))
      {
        if (bool) {
          break label135;
        }
        if (paramg.y((e)paramObject)) {
          break label134;
        }
      }
    }
    if (!bool) {
      if ((paramObject instanceof d))
      {
        if (bool) {
          break label135;
        }
        if (paramg.v((d)paramObject)) {
          break label134;
        }
      }
    }
    if (!bool) {
      if ((paramObject instanceof eb))
      {
        if (bool) {
          break label135;
        }
        if (paramg.a((eb)paramObject)) {
          break label134;
        }
      }
    }
    if (!bool) {
      if ((paramObject instanceof hg))
      {
        if (bool) {
          break label135;
        }
        if (paramg.a((hg)paramObject)) {
          break label134;
        }
      }
    }
    if ((bool) || ((paramObject instanceof jd))) {
      if (bool) {}
    }
    label134:
    label135:
    return paramg.a((jd)paramObject);
  }
  
  public static void a(g paramg, Object paramObject, boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {
      if ((paramObject instanceof e))
      {
        paramg.a((e)paramObject, paramBoolean);
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    if (!bool2) {
      if ((paramObject instanceof d))
      {
        paramg.a((d)paramObject, paramBoolean);
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    if (!bool2) {
      if ((paramObject instanceof eb))
      {
        paramg.a((eb)paramObject, paramBoolean);
        if ((!bool2) && (!bool1)) {
          return;
        }
      }
    }
    if (!bool2) {
      if ((paramObject instanceof hg)) {
        paramg.a((hg)paramObject, paramBoolean);
      }
    }
    if ((bool2) || ((bool1) && ((paramObject instanceof jd)))) {
      paramg.a((jd)paramObject, paramBoolean);
    }
  }
  
  public static void a(g paramg)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    do
    {
      w localw = paramg.v();
      while (!bool1)
      {
        if (!localw.e()) {
          break;
        }
        a(paramg, localw.d());
        localw.f();
      }
    } while (bool2);
  }
  
  public static void a(g paramg, e parame)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    paramg.a(parame, true);
    m localm = parame.n();
    label109:
    label111:
    do
    {
      do
      {
        if (!localm.e()) {
          return;
        }
        d locald = localm.a();
        if (locald.g())
        {
          fb localfb = paramg.t(locald).o();
          do
          {
            if (!localfb.e()) {
              break;
            }
            paramg.a(localfb.a(), true);
            localfb.f();
            if (bool2) {
              break label111;
            }
            if (bool1) {
              break label109;
            }
          } while (!bool1);
        }
      } while (bool2);
      localm.f();
    } while (!bool1);
  }
  
  public static void b(g paramg, e parame)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    paramg.a(parame, false);
    m localm = parame.n();
    label109:
    label111:
    do
    {
      do
      {
        if (!localm.e()) {
          return;
        }
        d locald = localm.a();
        if (locald.g())
        {
          fb localfb = paramg.t(locald).o();
          do
          {
            if (!localfb.e()) {
              break;
            }
            paramg.a(localfb.a(), false);
            localfb.f();
            if (bool2) {
              break label111;
            }
            if (bool1) {
              break label109;
            }
          } while (!bool1);
        }
      } while (bool2);
      localm.f();
    } while (!bool1);
  }
  
  public static k b(g paramg)
  {
    return new c_(c(paramg), d(paramg));
  }
  
  public static x c(g paramg)
  {
    return new e_(paramg);
  }
  
  public static n d(g paramg)
  {
    return new f_(paramg);
  }
  
  public static void a(g paramg, bb parambb1, bb parambb2, h paramh)
  {
    a(paramg, new a.i.u()new a.i.u
    {
      private final g val$graph;
      
      public boolean a(Object paramAnonymousObject)
      {
        return this.val$graph.y((e)paramAnonymousObject);
      }
    }, new a.i.u()
    {
      private final g val$graph;
      
      public boolean a(Object paramAnonymousObject)
      {
        return this.val$graph.a((eb)paramAnonymousObject);
      }
    }, parambb1, parambb2, paramh);
  }
  
  static void a(g paramg, a.i.u paramu1, a.i.u paramu2, bb parambb1, bb parambb2, h paramh)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    j localj = j.a(paramg);
    if (localj == null) {
      return;
    }
    boolean[] arrayOfBoolean = new boolean[paramg.j()];
    w localw = paramg.v();
    label209:
    label232:
    label246:
    do
    {
      if (!localw.e()) {
        break;
      }
      e locale1 = localw.d();
      do
      {
        if (paramu1.a(locale1))
        {
          if (!bool2) {
            if ((localj.m(locale1)) && (arrayOfBoolean[locale1.f()] == 0)) {
              a(localj, paramg, paramu1, paramu2, locale1, locale1, parambb1, paramh, arrayOfBoolean);
            }
          }
          e locale2 = localj.p(locale1);
          do
          {
            if (!localj.m(locale2)) {
              break label232;
            }
            if (bool1) {
              break;
            }
            if (locale2.g() != paramg) {
              break label232;
            }
            if (bool2) {
              break label246;
            }
            if (arrayOfBoolean[locale2.f()] != 0) {
              break label232;
            }
            if (!bool2) {
              if (paramu1.a(locale2))
              {
                a(localj, paramg, paramu1, paramu2, locale2, locale2, parambb1, paramh, arrayOfBoolean);
                if (bool2) {
                  continue;
                }
                if (!bool1) {
                  break label209;
                }
              }
            }
            parambb2.add(locale2);
            arrayOfBoolean[locale2.f()] = true;
            locale2 = localj.p(locale2);
          } while (!bool1);
        }
        localw.f();
      } while (bool2);
    } while (!bool1);
  }
  
  private static void a(j paramj, g paramg, a.i.u paramu1, a.i.u paramu2, e parame1, e parame2, bb parambb, h paramh, boolean[] paramArrayOfBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    w localw = paramj.r(parame2);
    label102:
    label242:
    do
    {
      do
      {
        if (!localw.e()) {
          break;
        }
        e locale = localw.d();
        if (parambb != null)
        {
          if (bool2) {
            break label102;
          }
          if (paramArrayOfBoolean[locale.f()] == 0)
          {
            if (bool2) {
              break label102;
            }
            if (!paramu1.a(locale))
            {
              parambb.add(locale);
              paramArrayOfBoolean[locale.f()] = true;
            }
          }
        }
        if ((bool2) || (paramj.m(locale))) {
          a(paramj, paramg, paramu1, paramu2, parame1, locale, parambb, paramh, paramArrayOfBoolean);
        }
        if (paramh != null)
        {
          d locald = locale.h();
          do
          {
            if (locald == null) {
              break label259;
            }
            tb localtb = paramg.t(locald);
            if (bool1) {
              break;
            }
            if (localtb.n() > 0)
            {
              if (bool2) {
                continue;
              }
              if (paramj.b(parame1, locald.f()))
              {
                fb localfb = localtb.o();
                do
                {
                  if (!localfb.e()) {
                    break label242;
                  }
                  if (bool1) {
                    break;
                  }
                  if (!paramu2.a(localfb.a())) {
                    paramh.add(localfb.a());
                  }
                  localfb.f();
                } while (!bool1);
              }
            }
            locald = locald.i();
            if (bool2) {
              break;
            }
          } while (!bool1);
        }
        localw.f();
      } while (bool2);
    } while (!bool1);
    label259:
  }
  
  public static boolean e(g paramg)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    do
    {
      w localw = paramg.v();
      while (!bool1)
      {
        if (!localw.e()) {
          break;
        }
        if (bool1) {
          break label56;
        }
        if (paramg.y(localw.d())) {
          return false;
        }
        localw.f();
      }
    } while (bool2);
    label56:
    return true;
  }
  
  public static boolean f(g paramg)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    do
    {
      m localm = paramg.w();
      while (!bool1)
      {
        if (!localm.e()) {
          break;
        }
        if (bool1) {
          break label56;
        }
        if (paramg.v(localm.a())) {
          return false;
        }
        localm.f();
      }
    } while (bool2);
    label56:
    return true;
  }
  
  public static class d_
    implements ic, a.c.u
  {
    int a = 0;
    boolean b = false;
    public static boolean c;
    
    public void onGraph2DSelectionEvent(mg parammg)
    {
      this.b = true;
      if (!ld.E)
      {
        if (this.a == 0) {
          a(parammg.e());
        }
      }
      else {
        this.b = false;
      }
    }
    
    public void a(cb paramcb)
    {
      boolean bool2 = ld.E;
      boolean bool1 = ld.D;
      if (!bool2) {}
      switch (paramcb.a())
      {
      case 12: 
        this.a += 1;
        if (!bool2) {
          if (!bool1) {
            return;
          }
        }
      case 13: 
        this.a -= 1;
        if ((bool2) || (this.b)) {
          if (!bool2)
          {
            if (this.a == 0)
            {
              a((g)paramcb.c());
              this.b = false;
            }
          }
          else if (!bool2) {
            if (!bool1) {
              return;
            }
          }
        }
        break;
      case 0: 
      case 1: 
      case 3: 
      case 5: 
      case 6: 
      case 7: 
      case 10: 
      case 11: 
        this.b = true;
        if (!bool2)
        {
          if (this.a == 0) {
            a((g)paramcb.c());
          }
        }
        else {
          this.b = false;
        }
        break;
      }
    }
    
    protected void a(g paramg) {}
  }
  
  private static final class c_
    implements k
  {
    private x a;
    private n b;
    
    c_(x paramx, n paramn)
    {
      this.a = paramx;
      this.b = paramn;
    }
    
    public Object get(Object paramObject)
    {
      boolean bool = ld.E;
      if (!bool) {
        if ((paramObject instanceof e)) {
          return this.a.get(paramObject);
        }
      }
      if ((bool) || ((paramObject instanceof d))) {
        return this.b.get(paramObject);
      }
      return null;
    }
    
    public boolean getBool(Object paramObject)
    {
      boolean bool = ld.E;
      if (!bool) {
        if ((paramObject instanceof e)) {
          return this.a.getBool(paramObject);
        }
      }
      if (!bool) {
        if ((paramObject instanceof d)) {
          return this.b.getBool(paramObject);
        }
      }
      return false;
    }
    
    public double getDouble(Object paramObject)
    {
      if (!ld.E) {
        if ((paramObject instanceof e)) {
          return this.a.getDouble(paramObject);
        }
      }
      if ((paramObject instanceof d)) {
        return this.b.getDouble(paramObject);
      }
      return 0.0D;
    }
    
    public int getInt(Object paramObject)
    {
      boolean bool = ld.E;
      if (!bool) {
        if ((paramObject instanceof e)) {
          return this.a.getInt(paramObject);
        }
      }
      if (!bool) {
        if ((paramObject instanceof d)) {
          return this.b.getInt(paramObject);
        }
      }
      return 0;
    }
  }
  
  private static final class f_
    extends t
  {
    private g b;
    
    f_(g paramg)
    {
      this.b = paramg;
    }
    
    public void a(Object paramObject, boolean paramBoolean)
    {
      this.b.a((d)paramObject, paramBoolean);
    }
    
    public boolean getBool(Object paramObject)
    {
      return this.b.v((d)paramObject);
    }
  }
  
  private static final class e_
    extends gb
  {
    private g b;
    
    e_(g paramg)
    {
      this.b = paramg;
    }
    
    public void a(Object paramObject, boolean paramBoolean)
    {
      this.b.a((e)paramObject, paramBoolean);
    }
    
    public boolean getBool(Object paramObject)
    {
      return this.b.y((e)paramObject);
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.j.ke
 * JD-Core Version:    0.7.0.1
 */